package com.xcc.shopanim;

/**
 * Created by 52463 on 2018/3/6.
 */

public class BaseContract {
    public interface BaseView {
        public void openLoadDialog();//开启对话框

        public void dismissDialog();//关闭对话框

        public void applyError(String t);//执行错误提示

        public void applyError(int tResId);//执行错误提示
    }

    public static class Presenter<T extends BaseView> {
        protected T baseView;

        public Presenter(T baseView) {
            this.baseView = baseView;
        }

        public void onDestroy() {//销毁
            baseView = null;
        }
    }
}